$(document).ready(function(){					
	var canvas = document.getElementById('canvas');//画布
	var stage = new JTopo.Stage(canvas);//舞台
	var scene = new JTopo.Scene(stage);//场景
	//显示工具栏 showJTopoToobar(stage);
	scene.background = './img/bg.jpg';//场景背景图片
	stage.add(scene);
	
	var node = new JTopo.BarChartNode();
    node.height = 320;
    node.width = 400;
    
    node.colors = ["#3666B0","#2CA8E0","#77D1F6","#12DFE5"];
    node.datas =  [130, 200, 120, 180];
    node.titles = ['2010', '2012', '2013', '2014'];
    node.setLocation(290, 103);
    scene.add(node);
    
    function f(){
        if(node.datas[1]++ > 300) return;
        setTimeout(f, 30);
    }
    f();
    
});
	